# -*- coding:utf-8 -*-
# File Name:init_test.py
# Author:jing
# Date:2018/12/18
import sys

sys.path.append('../src')
from config import MONGO_HOST

__author__ = 'jing'


def init_user():
    from ygframe.mongo_wrapper import mongo_initializer
    mongo_initializer.init(MONGO_HOST)
    from model.mongo_model.user import User
    test_user = User.query().filter(User.id == 'user01').first().get()
    if not test_user:
        User('user01').save()


if __name__ == '__main__':
    init_user()
